LaTeX commands which specify the BibTeX databases to use with the document.
List of regular expressions to exclude files in
\\bibliography{..}. File names matched by any of these regexps will not be parsed. Intended for files which contain only@stringmacro definitions and the like, which are ignored by RefTeX anyway.
List of BibTeX database files which should be used if none are specified. When
reftex-citationis called from a document with neither a ‘\bibliography{...}’ statement nor athebibliographyenvironment, RefTeX will scan these files instead. Intended for usingreftex-citationin non-LaTeX files. The files will be searched along the BIBINPUTS or TEXBIB path.
Sorting of the entries found in BibTeX databases by reftex-citation. Possible values:
nil Do not sort entries. author Sort entries by author name. year Sort entries by increasing year. reverse-year Sort entries by decreasing year.
The format of citations to be inserted into the buffer. It can be a string, an alist or a symbol. In the simplest case this is just the string ‘\cite{%l}’, which is also the default. See the definition of
reftex-cite-format-builtinfor more complex examples.If
reftex-cite-formatis a string, it will be used as the format. In the format, the following percent escapes will be expanded.
%l- The BibTeX label of the citation.
%a- List of author names, see also
reftex-cite-punctuation.%2a- Like %a, but abbreviate more than 2 authors like Jones et al.
%A- First author name only.
%e- Works like ‘%a’, but on list of editor names. (‘%2e’ and ‘%E’ work a well).
It is also possible to access all other BibTeX database fields:
%b booktitle %c chapter %d edition %h howpublished %i institution %j journal %k key %m month %n number %o organization %p pages %P first page %r address %s school %u publisher %t title %v volume %y year %B booktitle, abbreviated %T title, abbreviatedUsually, only ‘%l’ is needed. The other stuff is mainly for the echo area display, and for
(setq reftex-comment-citations t).‘%<’ as a special operator kills punctuation and space around it after the string has been formatted.
A pair of square brackets indicates an optional argument, and RefTeX will prompt for the values of these arguments.
Beware that all this only works with BibTeX database files. When citations are made from the
\bibitemsin an explicitthebibliographyenvironment, only ‘%l’ is available.If
reftex-cite-formatis an alist of characters and strings, the user will be prompted for a character to select one of the possible format strings.In order to configure this variable, you can either set
reftex-cite-formatdirectly yourself or set it to the symbol of one of the predefined styles. The predefined symbols are those which have an association in the constantreftex-cite-format-builtin) E.g.:(setq reftex-cite-format 'natbib).
If non-
nil, should be a function which produces the string to insert as a citation. Note that the citation format can also be changed with the variablereftex-cite-format. The function will be called with two arguments, the citation-key and the default-format (taken fromreftex-cite-format). It should return the string to insert into the buffer.
Non-
nilmeans, prompt for empty optional arguments in cite macros. When an entry inreftex-cite-formatist given with square brackets to indicate optional arguments (for example ‘\\cite[][]{%l}’), RefTeX can prompt for values. Possible values are:nil Never prompt for optional arguments t Always prompt maybe Prompt only ifreftex-citationwas called with C-u prefix argUnnecessary empty optional arguments are removed before insertion into the buffer. See
reftex-cite-cleanup-optional-args.
Non-
nilmeans, remove empty optional arguments from cite macros if possible.
Non-
nilmeans add a comment for each citation describing the full entry. The comment is formatted according toreftex-cite-comment-format.
Citation format used for commented citations. Must not contain ‘%l’. See the variable
reftex-cite-formatfor possible percent escapes.
Punctuation for formatting of name lists in citations. This is a list of 3 strings.
- normal names separator, like ‘, ’ in Jones, Brown and Miller
- final names separator, like ‘ and ’ in Jones, Brown and Miller
- The ‘et al.’ string, like ‘ {\it et al.}’ in Jones {\it et al.}
Normal hook which is run when a selection buffer enters
reftex-select-bib-mode.
The keymap which is active in the citation-key selection process (see Creating Citations).